package kr.co.sdsway2.comm;

import java.util.Enumeration;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.logging.Log;


public class SdsWay2Util {

	public static void printReq(HttpServletRequest req, Log logger) {
		if(logger!=null){
			Enumeration<String> enu = req.getParameterNames();
			String k,v;
			logger.info("────────── parameter list ──────────");
			while(enu.hasMoreElements()){
				k = enu.nextElement();
				v = req.getParameter(k);
				logger.info("["+k+":"+v+"]");
			}
			
		}
		
	}

}
